package com.solarStruggle.controls

import scala.swing.{MainFrame}
import actions.{Actions}
import domain.{Game, SolarSystem}

/**
 * The main game screen.
 */
class MainScreen 
extends MainFrame {
 
  val state = new GuiState(this)
  val actions = new Actions(state)
  
  val menu = new MainMenu(actions)
  val toolbar = new MainToolBar(actions)
  val galaxyMap = new GalaxyMap(state)
  val battleField = new BattleField(state)

  title = "Solar Struggle"
  preferredSize = (700, 700)
  menuBar = menu

	contents = new MigPanel("", "[100%]", "[300px][grow]") {
    add(toolbar, "dock north")
    add(galaxyMap, "width 300px, height 300px, wrap")
    add(battleField, "growx, growy")
  }
  
}
